<template>
    <div class="container">
        <img src="../assets/img/FaceVerify.png" alt="">
        <i-button @click="start" type="info" style="margin-top: 50px; width: 245px">开始识别</i-button>

    </div>
</template>

<script>
    export default {
        name: "FaceVerify",
        methods:{
            start(){
                this.$http.post('/facecheck', this.$qs.stringify({
                  id: '000001'
                })).then(response => {
                    if (response.data.code === 200) {
                        // console.log(response.data)
                        this.$Message.success(response.data.msg)
                        this.$router.push('/upload_materials')
                    }else{
                        alert("人脸识别未通过")
                    }
              })
            }

        }
    }
</script>

<style scoped>
    .container {
        display: grid;
        justify-content: center;
    }
</style>